/// total : 5
/// rows : [{"id":471970540774633472,"onlineCourseId":471967792794185728,"sectionName":"小节1视频","path":""}]
/// code : 200
/// msg : "查询成功"

class OnlineClassInfoDto {
  OnlineClassInfoDto({
    int? total,
    List<Rows>? rows,
    int? code,
    String? msg,
  }) {
    _total = total;
    _rows = rows;
    _code = code;
    _msg = msg;
  }

  OnlineClassInfoDto.fromJson(dynamic json) {
    _total = json['total'];
    if (json['rows'] != null) {
      _rows = [];
      json['rows'].forEach((v) {
        _rows?.add(Rows.fromJson(v));
      });
    }
    _code = json['code'];
    _msg = json['msg'];
  }
  int? _total;
  List<Rows>? _rows;
  int? _code;
  String? _msg;

  int? get total => _total;
  List<Rows>? get rows => _rows;
  int? get code => _code;
  String? get msg => _msg;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['total'] = _total;
    if (_rows != null) {
      map['rows'] = _rows?.map((v) => v.toJson()).toList();
    }
    map['code'] = _code;
    map['msg'] = _msg;
    return map;
  }
}

/// id : 471970540774633472
/// onlineCourseId : 471967792794185728
/// sectionName : "小节1视频"
/// path : ""

class Rows {
  Rows(
      {String? id,
      String? onlineCourseId,
      String? sectionName,
      String? path,
      bool selectEd = false}) {
    _id = id;
    _onlineCourseId = onlineCourseId;
    _sectionName = sectionName;
    _path = path;
    _selectEd = selectEd;
  }

  set selectEd(bool value) {
    _selectEd = value;
  }

  Rows.fromJson(dynamic json) {
    _id = json['id'];
    _onlineCourseId = json['onlineCourseId'];
    _sectionName = json['sectionName'];
    _path = json['path'];
  }
  String? _id;
  String? _onlineCourseId;
  String? _sectionName;
  String? _path;
  bool _selectEd = false;

  String? get id => _id;
  String? get onlineCourseId => _onlineCourseId;
  String? get sectionName => _sectionName;
  String? get path => _path;
  bool get selectEd => _selectEd;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['onlineCourseId'] = _onlineCourseId;
    map['sectionName'] = _sectionName;
    map['path'] = _path;
    map['selectEd'] = _selectEd;
    return map;
  }
}
